package com.onLineCar.openFeign;

import com.onLineCar.common.core.domain.Result;
import com.onLineCar.openFeign.impl.MessageFeignImpl;
import com.onLineCar.vehicle.entity.request.message.MessageRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 李新科
 * @version 1.0
 * @description
 */
@FeignClient(name = "onLineCar-management" , fallback = MessageFeignImpl.class)
public interface MessageFeign {
    /**
     * 短信模板
     *
     * @param messageRequest
     * @return
     */
    @PostMapping("/shortMessage")
    public Result shortMessage(@RequestBody MessageRequest messageRequest);

}
